<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org"
>
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" th:href="@{/layui/css/layui.css}" media="all">
</head>
<body>
<div class="layui-btn-container">

    <a th:href="@{/web/add1}" class="layui-btn ">新增</a>
    <a th:href="@{/index/ll}" class="layui-btn ">返回</a>
</div>
<table class="layui-table">
    <thead>
    <th>书名</th>
    <th>数量</th>
    <th>操作</th>
    </thead>
    <tbody>
    <tr th:each="user :${userlist}">
        <td>[[${user.name}]]</td>
        <td>[[${user.nub}]]</td>
        <td>
            <a th:href="'/web/edit1/'+${user.name}" class="layui-btn layui-btn-normal">编辑</a>
            <a th:href="'/web/del/'+${user.name}" class="layui-btn layui-btn-warm">删除</a>
        </td>
    </tr>
    </tbody>
</table>

</body>
</html>